package com.hqj.controller;

import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public class BaseController<T> {

    @RequestMapping("/index")
    public String index(){
        return "";
    }

    @RequestMapping("/addEdit")
    public String addEdit(HttpServletRequest req, Model model){
        return "";
    }

    @RequestMapping("/find")
    @ResponseBody
    public String find(T t){
        return null;
    }

    @RequestMapping("/add")
    @ResponseBody
    public Map<String,Object> add(T t){ return null;}

    @RequestMapping("/edit")
    @ResponseBody
    public Map<String,Object> edit(T t){ return null;}

    @RequestMapping("/remove")
    @ResponseBody
    public Map<String,Object> remove(T t){
        return null;
    }
}
